
import json

# SETTING_FILE = "~/.onlineclip.conf"
SETTING_FILE = "./onlineclip.conf"


class SettingParser(object):

    def __init__(self, settingFile=SETTING_FILE):
        self.settingFile = settingFile

    def get_settings(self):
        settings = open(self.settingFile, 'r').read()
        settings = json.loads(settings)
        return settings

if __name__ == "__main__":
    sp = SettingParser()
    sp.get_settings()
